# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2


#This isn't very portable, but I couldn't find the correct way to do it.
KMNAME="kdebase"
MAXKDEVER="3.5.5"
KM_DEPRANGE="3.5.0 $MAXKDEVER"
inherit kde

need-kde 3.5


export PKG_CONFIG_PATH="${QTDIR}/lib/pkgconfig"

DESCRIPTION="Use avahi as drop-in replacement for mDNSResponder."
HOMEPAGE="http://wiki.kde.org/tiki-index.php?page=Zeroconf+in+KDE"
SRC_URI="http://helios.et.put.poznan.pl/~jstachow/pub/${PN}_${PV}.orig.tar.gz"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""

RDEPEND="${RDEPEND} >=net-dns/avahi-0.6.3"
DEPEND="${RDEPEND}"

src_compile() {
        
	myconf="$(use_enable kdeenablefinal final)
		$(use_with arts)"

        kde_src_compile configure

	cd ${S}/kdnssd-avahi && make mocs

	kde_src_compile make
}
